Release 10.1A: OpenEdge Development:
Programming Interfaces
Managing the server socket
After you create and enable a server socket to listen for and accept connections, you can perform the following management functions on the server socket:
- Control event sensitivity — At any time, you can make the server socket stop receiving
CONNECTevents by setting itsSENSITIVEattribute toFALSE. You can, at any time, return it to listen forCONNECTevents by settingSENSITIVEtoTRUE. Thus, whenSENSITIVEisFALSE, Progress still listens on the specified port, but temporarily stops accepting connections and postingCONNECTevents.- Disable listening for connections — You can permanently stop the server socket from accepting connections by invoking its
DISABLE-CONNECTIONS( )method. This stops the server socket from listening on the current port for new connections. However, all currently-connected sockets remain connected. If a client attempts to connect on the port, it receives an error.- Delete the server socket object — You can delete a server socket object using the
DELETEOBJECTstatement. However, you must disable the server socket from listening for and accepting connections before you can delete it.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |